package com.zx.flow.api.listener;

import com.zx.flow.api.listener.request.FlowOperator4Listener;
import java.util.List;

/**
 * 流程回调处理器【每个流程配置一个】
 */
public interface FlowCallbackHandler {

    /**
     * 监听流程的事件[需要对外暴露接口]
     */
    void doListener(FlowEvent flowEvent);

    /**
     * 获得操作人[需要对外暴露接口]
     *
     * @param flowEvent
     */
    List<FlowOperator4Listener> getOperators(FlowEvent flowEvent);


}
